<template>
	<view class="ucenter-page">
		<u-navbar :background="background" title-size="36" title-color="#fff"  height="42"
			:border-bottom="false" title="我的权益"></u-navbar>
		<view class="bg">
		</view>
		<view class="u-info">
			<image src="../../static/images/avatar.jpg" class="u-avatar" mode=""></image>
			<view class="u-name">张某某</view>
		</view>
		<view class="lev-steps">
			<view class="lev-step">
				<view class="lev-step-content">
					<image src="../../static/images/lev1.png" mode="" class="lev-step-icon"></image>
					<view class="lev-step-text"></view>
				</view>
			</view>
			<view class="lev-step">
				<view class="lev-step-content">
					<image src="../../static/images/lev2.png" mode="" class="lev-step-icon"></image>
					<view class="lev-step-text">500万</view>
				</view>
			</view>
			<view class="lev-step">
				<view class="lev-step-content">
					<image src="../../static/images/lev3.png" mode="" class="lev-step-icon"></image>
					<view class="lev-step-text">1500万</view>
				</view>
			</view>
			<!-- <view class="lev-step">
				<view class="lev-step-content">
					<image src="../../static/images/lev4.png" mode="" class="lev-step-icon"></image>
					<view class="lev-step-text">2500万</view>
				</view>
			</view> -->
			<view class="lev-slide">
				<view class="lev-step-inner" style="width: 60%;">

				</view>
			</view>
		</view>
		<swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
			:duration="duration" previous-margin="18rpx" next-margin="18rpx" :current="current"
			indicator-color="rgba(56, 56, 66, 0.3)" indicator-active-color="rgba(56, 56, 66, 1)" active-class="active">
			<swiper-item>
				<view class="swiper-item">
					<view class="lev-card lev-zs-card">
						<image src="../../static/images/card@vip-1.png" mode="" class="box"></image>
						<view class="lev-tag">当前等级</view>
						<view class="lev-content">
							<view class="lev-name">钻石会员</view>
							<view class="lev-gx">您已经累计贡献了2500万成交额！</view>
							<view class="lev-infos">
								<view class="lev-info__item flex-center">
									<image src="../../static/images/medal1.png" mode="" class="medal"></image>
									<text>设备成交奖励佣金提升20%</text>
								</view>
								<view class="lev-info__item flex-center">
									<image src="../../static/images/medal1.png" mode="" class="medal"></image>
									<text>一级会员分红比例提升至20%</text>
								</view>
								<view class="lev-info__item flex-center">
									<image src="../../static/images/medal1.png" mode="" class="medal"></image>
									<text>一次性奖励2888元</text>
								</view>
							</view>
						</view>
					</view>
				</view>
			</swiper-item>
			<swiper-item>
				<view class="swiper-item">
					<view class="lev-card lev-bj-card">
						<image src="../../static/images/card@vip-2.png" mode="" class="box"></image>
						<view class="lev-tag">当前等级</view>
						<view class="lev-content">
							<view class="lev-name">铂金会员</view>
							<view class="lev-gx">您已经累计贡献了1500万成交额！</view>
							<view class="lev-infos">
								<view class="lev-info__item flex-center">
									<image src="../../static/images/medal2.png" mode="" class="medal"></image>
									<text>设备成交奖励佣金提升10%</text>
								</view>
								<view class="lev-info__item flex-center">
									<image src="../../static/images/medal2.png" mode="" class="medal"></image>
									<text>一级会员分红比例提升至15%</text>
								</view>
								<view class="lev-info__item flex-center">
									<image src="../../static/images/medal2.png" mode="" class="medal"></image>
									<text>一次性奖励1888元</text>
								</view>
							</view>
						</view>
					</view>
				</view>
			</swiper-item>
			<swiper-item>
				<view class="swiper-item">
					<view class="lev-card lev-hj-card">
						<image src="../../static/images/card@vip-3.png" mode="" class="box"></image>
						<view class="lev-tag">当前等级</view>
						<view class="lev-content">
							<view class="lev-name">黄金会员</view>
							<view class="lev-gx">您已经累计贡献了500万成交额！</view>
							<view class="lev-infos">
								<view class="lev-info__item flex-center">
									<image src="../../static/images/medal3.png" mode="" class="medal"></image>
									<text>设备成交奖励佣金提升5%</text>
								</view>
								<view class="lev-info__item flex-center">
									<image src="../../static/images/medal3.png" mode="" class="medal"></image>
									<text>一次性奖励500元</text>
								</view>
							</view>
						</view>
					</view>
				</view>
			</swiper-item>
			<swiper-item>
				<view class="swiper-item">
					<view class="lev-card lev-pt-card">
						<image src="../../static/images/card@vip-4.png" mode="" class="box"></image>
						<view class="lev-tag">当前等级</view>
						<view class="lev-content">
							<view class="lev-name">普通会员</view>
							<view class="lev-infos">
								<view class="lev-info__item flex-center">
									<image src="../../static/images/medal4.png" mode="" class="medal"></image>
									<text>设备成交奖励佣金</text>
								</view>
								<view class="lev-info__item flex-center">
									<image src="../../static/images/medal4.png" mode="" class="medal"></image>
									<text>线索核实有效佣金</text>
								</view>
								<view class="lev-info__item flex-center">
									<image src="../../static/images/medal4.png" mode="" class="medal"></image>
									<text>一级会员设备成交，10%分红</text>
								</view>
								<view class="lev-info__item flex-center">
									<image src="../../static/images/medal4.png" mode="" class="medal"></image>
									<text>二级会员设备成交，5%分红</text>
								</view>
							</view>
						</view>
					</view>
				</view>
			</swiper-item>
		</swiper>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				background: {

				},
				indicatorDots: true,
				autoplay: false,
				interval: 2000,
				duration: 500,
				current: 0
			}
		},
		onLoad() {

		},
		methods: {
			openUrl(e) {
				console.log(e)
				uni.navigateTo({
					url: e
				});
			},
			scroll: function(e) {
				console.log(e)
			},
		}
	}
</script>

<style lang="scss">
	/deep/ .u-navbar .u-title {
		color: #fff !important;
		opacity: 0.5;
	}

	.ucenter-page {
		position: relative;
	}

	.bg {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 373px;
		background: linear-gradient(180deg, #363544 0%, #1E1E27 100%);
	}


	.u-info {
		text-align: center;
		position: relative;
		padding: 52rpx 0 46rpx;

		.u-avatar {
			width: 152rpx;
			height: 152rpx;
			border-radius: 50%;
			border: 4rpx solid #e5e5e7;
		}

		.u-name {
			font-size: 44rpx;
			color: #fff;
			font-weight: 600;
			line-height: 60rpx;
			margin-top: 16rpx;
		}
	}

	.lev-card {
		height: 540rpx;
		position: relative;

		.box {
			width: 100%;
			height: 100%;
			display: block;
		}

		.lev-tag {
			position: absolute;
			top: 22rpx;
			left: 0;
			width: 140rpx;
			height: 56rpx;
			font-size: 26rpx;
			color: #fff;
			text-align: center;
			line-height: 56rpx;
			border-radius: 20rpx 0 40rpx 0;
			background-color: rgba(98, 119, 213, 0.8);
		}

		.lev-content {
			position: absolute;
			left: 0;
			top: 130rpx;
			width: 100%;
			padding-left: 76rpx;
			color: #3A4B95;

			.lev-name {
				font-size: 56rpx;
				line-height: 80rpx;
				margin-bottom: 16rpx;
			}

			.lev-gx {
				font-size: 24rpx;
				line-height: 34rpx;
				margin-bottom: 48rpx;
			}

			.lev-infos {
				.lev-info__item {
					margin-bottom: 14rpx;
					font-size: 24rpx;

					.medal {
						width: 32rpx;
						height: 32rpx;
						margin-right: 6rpx;
					}
				}

			}
		}

	}

	swiper {
		height: 600rpx;
	}

	.lev-steps {
		display: flex;
		justify-content: space-between;
		margin-bottom: 40rpx;
		position: relative;

		.lev-slide {
			height: 20rpx;
			width: 100%;
			background-color: rgba(255, 255, 255, 0.1);
			padding: 4rpx 0;
			position: absolute;
			left: 0;
			top: 28rpx;

			.lev-step-inner {
				height: 12rpx;
				background-color: #A2C833;
				border-radius: 0rpx 14rpx 14rpx 0rpx;
			}
		}

		.lev-step {
			width: 140rpx;

			.lev-step-content {
				text-align: center;

				.lev-step-icon {
					width: 76rpx;
					height: 76rpx;
					display: block;
					margin: 0 auto;
					position: relative;
					z-index: 11;
				}

				.lev-step-text {
					font-size: 26rpx;
					color: #fff;
					opacity: 0.4;
					line-height: 36rpx;
					margin-top: 14rpx;
				}
			}
		}
	}

	.swiper-item {
		padding: 0 10rpx;
	}

	/* 修改dot形状 */
	.wx-swiper-dots .wx-swiper-dot {
		width: 24rpx;
		height: 10rpx;
		border-radius: 6rpx;
		margin: 0 6rpx;
	}

	/deep/.uni-swiper-dots .uni-swiper-dot {
		width: 24rpx;
		height: 10rpx;
		border-radius: 6rpx;
		margin-right: 12rpx;
	}
	.lev-bj-card{
		.lev-tag{
			background-color: #8F5F51;
		}
		.lev-content{
			color: #703A2D;
		}
	}
	.lev-hj-card{
		.lev-tag{
			background-color: #CD9130;
		}
		.lev-content{
			color: #7D561E;
		}
	}
	.lev-pt-card{
		.lev-tag{
			background-color: #96C01E;
		}
		.lev-content{
			color: #383842;
		}
	}
	
	
	
	
	
</style>
